package com.example.text2.service.impl;

import com.example.text2.mapper.CoustmerMapper;
import com.example.text2.pojo.Coustomer;
import com.example.text2.service.CoustmerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CoustmerServiceImpl implements CoustmerService {
   @Autowired
   private CoustmerMapper coustmerMapper;
    @Override
    public Coustomer findById(Integer id) {
        return coustmerMapper.findById(id);
    }

    @Override
    public List<Coustomer> findAll() {
        return coustmerMapper.findAll();
    }

    @Override
    public List<Coustomer> search(Coustomer coustomer) {
        return coustmerMapper.search(coustomer);
    }
}
